#!/bin/bash
# Name:     update_files.sh
# Author:   xiooli
#           Email:  <xioooli[at]yahoo.com.cn>
#           Site:   http://joolix.com
# Licence:  GPLv3
# Version:  091112

# 将本目录更改过的文件更新到 ../files/

cp ./initrd.gz ../files/
skel_dir=".skel-$$"
mkdir "$skel_dir"
tar -xf ../files/skel.tar.gz -C "$skel_dir"
cp ./initrd.gz "$skel_dir"/boot
cd "$skel_dir"
tar -czf ../../files/skel.tar.gz ./* && \
cd - && rm -rf "$skel_dir"


